<?php 
$objConnect = mssql_connect('mssql.infratechastm.com','infratechastm_dede','system1');
//$conn = mssql_connect('JAMES-PC','sa','1234');
//  mssql_select_db("projectDepartmentofEnergy") or die("Error Not Select."); 		
//  $stmt= mssql_init("QueryUser");
//  $i = 'I1';
// 		mssql_bind($stmt, "@ITYPE",'I1',SQLVARCHAR, FALSE, FALSE, 2);
// 		$result = mssql_execute($stmt);
// 		//mssql_execute($stmt);

// //mssql_close($objConnect);


// $row = mssql_fetch_array($result);

// echo $row[names];



//	$objConnect = mssql_connect("localhost","sa","");
	if($objConnect)
	{
		echo "Database Connected.";
	}
	else
	{
		echo "Database Connect Failed.";
	}

	mssql_close($objConnect);

?>

